package com.xintech.common.security.annotation;

import com.xintech.common.security.component.SpacexCloudResourceServerAutoConfiguration;
import com.xintech.common.security.component.SpacexCloudResourceServerTokenRelayAutoConfiguration;
import com.xintech.common.security.component.SpacexCloudSecurityBeanDefinitionRegistrar;
import com.xintech.common.security.feign.SpacexCloudFeignClientConfiguration;
import org.springframework.context.annotation.Import;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;
import org.springframework.security.oauth2.config.annotation.web.configuration.EnableResourceServer;

import java.lang.annotation.*;

/**
 * @author Jetzhu
 * @date 2019/03/08
 * <p>
 * 资源服务注解
 */
@Documented
@Inherited
@EnableResourceServer
@Target({ ElementType.TYPE })
@Retention(RetentionPolicy.RUNTIME)
@EnableGlobalMethodSecurity(prePostEnabled = true)
@Import({ SpacexCloudResourceServerAutoConfiguration.class, SpacexCloudSecurityBeanDefinitionRegistrar.class,
		SpacexCloudResourceServerTokenRelayAutoConfiguration.class, SpacexCloudFeignClientConfiguration.class })
public @interface EnableSpacexCloudResourceServer {

}
